package 设计模式.factory.Abstract;


//小米工厂生产小米手机和路由器
public class XiaomiFactory implements IProductFactory {
    @Override
    public IphoneProduct iphoneProduct() {
        return new XiaomiPhone();
    }

    @Override
    public IRouterProduct iRouterProduct() {
        return new XiaomiIRouter();
    }
}
